package com.qf.medicaldoctoradmin.healthRecord.controller;

import com.qf.common.common.R;
import com.qf.medicaldoctoradmin.healthRecord.dao.HealthFileDao;
import com.qf.medicaldoctoradmin.healthRecord.param.HealthParam;
import com.qf.medicaldoctoradmin.healthRecord.service.HealthFileService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * --- 业精于勤,荒于嬉 ---
 *
 * @author Song
 * @date 2024/11/16
 * @desc First
 */
@Api(tags = "健康档案健康信息")
@RequestMapping("/health")
@RestController
@CrossOrigin
public class HealthFileController {

    @Resource
    private HealthFileService healthFileService;


    @ApiOperation(value = "保存健康档案信息", notes = "修改健康档案的健康信息")
    @PostMapping("/healthFile")
    public R addFile(@RequestBody HealthParam param) {

        healthFileService.addFile(param);

        return R.ok("success");
    }

}
